package cn.edu.sgu.www.mhxysy.dto.potency;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class PotencyFruitPatternCategoryDTO implements DataTransferObject {

    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 图案名称
     */
    @NotBlank(message = "图案名称" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "图案名称", required = true)
    private String name;

    /**
     * 图案类型
     */
    @Positive(message = "图案类型" + CustomMessages.ILLEGAL)
    @NotNull(message = "图案类型" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "图案类型", required = true)
    private Integer type;

    /**
     * 组合效果
     */
    @NotBlank(message = "组合效果" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "组合效果", required = true)
    private String comboEffect;
}